#!/usr/bin/env bash
# should run as . ./start.sh
source ~/.bashrc

echo $SDKMAN_DIR
which sdk
sdk use java 17.0.9.fx-librca
nohup java -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=heapdump.hprof -jar schoolmate-home-server-0.0.1-SNAPSHOT.jar >>out.log 2>&1 &
disown